package com.example.paopao.consumer.account.dao.persist.mapper;

import com.example.paopao.consumer.account.pojo.entity.User;

import com.example.paopao.consumer.account.pojo.vo.UserVO;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository
public interface UserMapper{

    @Transactional
    int insert(User user);

    UserVO selectByName(String name);

    List<UserVO> selectByPhone(String phone);

    int countUser();
}
